﻿using System;
namespace UcAsp.Net.IDAL
{
    public interface IArticlesDAL
    {
        bool Delete(DateTime Time, int CategoriesID);
        bool Delete(UcAsp.Net.Model.Articles model);
        UcAsp.Net.Model.Articles GetArtieByTitle(string title);
        bool Insert(UcAsp.Net.Model.Articles model);
        UcAsp.Net.Model.Articles Limt(int id);
        UcAsp.Net.Model.ArticelsViews GetArtieByShowPath(string showpath, out int count, out System.Collections.Generic.List<UcAsp.Net.Model.ArticelsViews> nextorprev);
        UcAsp.Net.Model.ArticelsViews GetArtieById(int id, out int count,out System.Collections.Generic.List<UcAsp.Net.Model.Articles> nextorprev);
        UcAsp.Net.Model.Articles RecommdRecord(int id, bool recommd);
        UcAsp.Net.Model.Articles ReleaseRecord(int id, bool release);
        System.Collections.Generic.List<UcAsp.Net.Model.Articles> Select(int? userid, int? categoriesid, bool isrecommend, bool isrelease, DateTime? begin, DateTime? end, string keyword, int pagesize, int pageindex, out int pagecount);
        System.Collections.Generic.List<UcAsp.Net.Model.ArticelsViews> SelectViews(int? userid, int? categoriesid, bool? isrecommend, bool? isrelease, DateTime? begin, DateTime? end, string keyword, int pagesize, int pageindex, out int pagecount);
        bool Update(UcAsp.Net.Model.Articles model);
        System.Collections.Generic.List<UcAsp.Net.Model.ArticelsViews> Subject(string categoriesid, string keyword, int maxnum, int whoview);
    }
}
